//
//  HDArchiveTypeHelper.swift
//  HuaDaoPeifu
//
//  Created by 刘杰 on 2018/7/24.
//  Copyright © 2018年 paiyipai. All rights reserved.
//

import UIKit

class HDArchiveTypeHelper: NSObject {
    
    static let sharedInstance = HDArchiveTypeHelper()
    
    fileprivate var dict : [String:String]!
    
    fileprivate override init() {
        guard let path = Bundle.main.path(forResource: "ArchieveTypeName.plist", ofType: nil),
        let dict = NSDictionary(contentsOfFile: path) else {
            return
        }
        
        self.dict = dict as! [String : String]
    }

    /// 获取 archiveKey对应的中文名称
    func typeTitle(TypeId typeId:String) -> String {
        return dict[typeId] ?? ""
    }
}
